import request from "@/utils/request";
import { LoginParamsType } from "./data";

export async function accountLogin(params: LoginParamsType): Promise<any> {
	return request({
		url: "/base/login",
		method: "POST",
		data: params,
	});
}
// @Summary 获取验证码
// @Produce  application/json
// @Param data body {username:"string",password:"string"}
// @Router /base/captcha [post]
export const captcha = () => {
	return request({
		url: "/base/captcha",
		method: "POST"
	})
}
